package net.ryian.sms.service.impl;

import net.ryian.sms.service.ISmsService;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Properties;

/**
 * Created by allenwc on 15/9/24.
 */
public abstract class BaseSmsService implements ISmsService {

    protected Log logger = LogFactory.getLog(getClass());
    protected Properties prop;

    public BaseSmsService() {
        prop = new Properties();
        try {
            prop.load(new InputStreamReader(this.getClass().getClassLoader()
                    .getResourceAsStream("sms.properties"), "UTF-8"));
        } catch (IOException e) {
            logger.error(e);
        }
    }

}
